package io.renren.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.dao.BookmarkDao;
import io.renren.entity.BookmarkEntity;
import io.renren.service.BookmarkService;
import io.renren.util.Query;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("bookmarkService")
public class BookmarkServiceImpl extends ServiceImpl<BookmarkDao, BookmarkEntity> implements BookmarkService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<BookmarkEntity> page = this.selectPage(
                new Query<BookmarkEntity>(params).getPage(),
                new EntityWrapper<BookmarkEntity>()
        );

        return new PageUtils(page);
    }




}
